import { context } from './example';

export const TestA = () => {
  const handleClick = () => {
    context.setData(`Updated at ${new Date().toLocaleTimeString()}`);
  };

  return (
    <div>
      <h2>Component A (Provider)</h2>
      <button type="button" onClick={handleClick}>
        Update Data
      </button>
    </div>
  );
};
